package com.sqx.modules.agentCityDetails.controller;

import com.sqx.common.utils.Result;
import com.sqx.modules.agentCityDetails.entity.AgentCityDetails;
import com.sqx.modules.agentCityDetails.service.AgentCityDetailsService;
import com.sqx.modules.sys.entity.SysUserEntity;
import com.sqx.modules.sys.service.SysUserService;
import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * 代理钱包明细-管理端
 * @author wuChang
 * @since 2024-03-22
 */
@RestController
@Api(value = "代理钱包明细-管理端", tags = {"代理钱包明细-管理端"})
@RequestMapping("/admin/agentCityDetails/")
public class AgentCityDetailsController {
    @Autowired
    private AgentCityDetailsService agentCityDetailsService;
    @Autowired
    private SysUserService sysUserService;
    /**
     * 获取代理钱包明细列表
     * @param agentCityDetails 代理钱包明细
     */
    @ApiOperation("获取城市收益明细列表")
    @GetMapping(value = "getAgentCityDetailsList")
    public Result getAgentCityDetailsList(Integer page, Integer limit, AgentCityDetails agentCityDetails) {

        return Result.success().put("data", agentCityDetailsService.getAgentCityDetailsList(page, limit, agentCityDetails));
    }

}